package com.adam.service;

import com.adam.pojo.Books;
import org.springframework.web.bind.annotation.PathVariable;

import java.awt.print.Book;
import java.util.List;

public interface BookService {
    //add
    int addBook(Books book);
    //delete
    int deleteBook(int id);
    //update
    int updateBook(Books book);
    //selectByID
    Books queryByID(int id);
    //selectAll
    List<Books> queryAll();

    List<Books> searchBook(String bookName);
}
